]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Move logging outside of mutex rocksdb-3.6.1
authorIgor Canadi <icanadi@fb.com>
Wed, 15 Oct 2014 17:57:43 +0000 (10:57 -0700)
committerIgor Canadi <icanadi@fb.com>
Wed, 15 Oct 2014 17:57:43 +0000 (10:57 -0700)
db/db_impl.cc
include/rocksdb/version.h

index 5abfb4ac2e8cf3764de8eafd5acd886141d98629..383e2f6699649b62ccdb1c4bea14baf5910281bd 100644 (file)
@@ -4232,6 +4232,9 @@ Status DBImpl::SetNewMemtableAndNewLogFile(ColumnFamilyData* cfd,
       new_superversion = new SuperVersion();
     }
   }
+  Log(db_options_.info_log,
+      "[%s] New memtable created with log file: #%" PRIu64 "\n",
+      cfd->GetName().c_str(), new_log_number);
   mutex_.Lock();
   if (!s.ok()) {
     // how do we fail if we're not creating new log?
@@ -4264,9 +4267,6 @@ Status DBImpl::SetNewMemtableAndNewLogFile(ColumnFamilyData* cfd,
   cfd->imm()->Add(cfd->mem());
   new_mem->Ref();
   cfd->SetMemtable(new_mem);
-  Log(db_options_.info_log,
-      "[%s] New memtable created with log file: #%" PRIu64 "\n",
-      cfd->GetName().c_str(), logfile_number_);
   context->superversions_to_free_.push_back(
       cfd->InstallSuperVersion(new_superversion, &mutex_, mutable_cf_options));
   return s;
index 2852788544441676e1b7525e1d2188ed47e8d485..84ece982ac74c2671dc66dcb70d7481db6f9b6af 100644 (file)
@@ -6,7 +6,7 @@
 
 #define ROCKSDB_MAJOR 3
 #define ROCKSDB_MINOR 6
-#define ROCKSDB_PATCH 0
+#define ROCKSDB_PATCH 1
 
 // Do not use these. We made the mistake of declaring macros starting with
 // double underscore. Now we have to live with our choice. We'll deprecate these