We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64539ed commit 73109c1Copy full SHA for 73109c1
src/test/objectstore/test_deferred.cc
@@ -2,6 +2,7 @@
2
// vim: ts=8 sw=2 smarttab
3
4
#include <stdio.h>
5
+#include <stdlib.h>
6
#include <string.h>
7
#include <iostream>
8
#include <memory>
@@ -44,10 +45,11 @@ void create_deferred_and_terminate() {
44
45
coll_t cid;
46
ghobject_t hoid;
47
ObjectStore::CollectionHandle ch;
- ceph_assert(::mkdir("bluestore.test_temp_dir", 0777) == 0);
48
+ std::string const db_store_dir = "bluestore.test_temp_dir_" + std::to_string(time(NULL));
49
+ ceph_assert(::mkdir(db_store_dir.c_str(), 0777) == 0);
50
store = ObjectStore::create(g_ceph_context,
51
"bluestore",
- "bluestore.test_temp_dir",
52
+ db_store_dir.c_str(),
53
"store_test_temp_journal");
54
ceph_assert(store->mkfs() == 0);
55
ceph_assert(store->mount() == 0);
0 commit comments