]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os: FileStore: remove default param
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 27 Jan 2011 16:25:27 +0000 (08:25 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 28 Jan 2011 10:42:59 +0000 (02:42 -0800)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/dupstore.cc
src/os/FileStore.h
src/test_trans.cc

index 5ffe4f562aed2fe1d65058e04b481fb5b3cc8a6b..ef137f8ecbfd5e0b53210b857af1cf29a7da2dee 100644 (file)
@@ -101,14 +101,14 @@ int main(int argc, const char **argv)
   //src = new Ebofs(args[1]);
   //else
   if (strcmp(args[0], "filestore") == 0) 
-    src = new FileStore(args[1]);
+    src = new FileStore(args[1], NULL);
   else usage();
 
   //if (strcmp(args[2], "ebofs") == 0) 
   //dst = new Ebofs(args[3]);
   //else
   if (strcmp(args[2], "filestore") == 0) 
-    dst = new FileStore(args[3]);
+    dst = new FileStore(args[3], NULL);
   else usage();
 
   return dupstore(src, dst);
index 52d8828c50204f68ce238d0e409c2411ae5b3fb2..a8cbac1d2165eb3eb785426d1fe82b3e5a729738 100644 (file)
@@ -224,7 +224,7 @@ class FileStore : public JournalingObjectStore {
   int open_journal();
 
  public:
-  FileStore(const char *base, const char *jdev = 0);
+  FileStore(const char *base, const char *jdev);
 
   int _detect_fs();
   int _sanity_check_fs();
index 0c7bdb95f8be0ee96169c826ff606e2437c96f69..cf0f96422380fc9e2f64ef08b2018d5d69376f16 100644 (file)
@@ -47,7 +47,7 @@ int main(int argc, const char **argv)
   cout << "#dev " << filename << std::endl;
   cout << "#mb " << mb << std::endl;
 
-  ObjectStore *fs = new FileStore(filename);
+  ObjectStore *fs = new FileStore(filename, NULL);
   if (fs->mount() < 0) {
     cout << "mount failed" << std::endl;
     return -1;