]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: fix error message
authorYehuda Sadeh <yehuda.sadeh@dreamhost.com>
Fri, 27 Apr 2012 23:05:36 +0000 (16:05 -0700)
committerYehuda Sadeh <yehuda.sadeh@dreamhost.com>
Fri, 27 Apr 2012 23:05:36 +0000 (16:05 -0700)
error message was misleading, fixing it.

Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
src/os/FileStore.cc

index 1a64d8cc6aa80ec3ad063abd7241c253914c0791..287b674443aafdbc3eb2712a0615b8caec722a52 100644 (file)
@@ -1783,9 +1783,8 @@ int FileStore::mount()
        struct stat st;
        if (::stat(nosnapfn, &st) == 0) {
          if (!m_osd_use_stale_snap) {
-           derr << "ERROR: current/ volume data version is not equal to snapshotted version." << dendl;
-           derr << "Current version " << curr_seq << ", last snap " << cp << dendl;
-           derr << "Force rollback to snapshotted version with 'osd use stale snap = true'" << dendl;
+           derr << "ERROR: " << nosnapfn << " exists, not rolling back to avoid losing new data" << dendl;
+           derr << "Force rollback to old snapshotted version with 'osd use stale snap = true'" << dendl;
            derr << "config option for --osd-use-stale-snap startup argument." << dendl;
            ret = -ENOTSUP;
            goto close_basedir_fd;