You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, I just compiled the latest sources on my local mac os x (mavericks).
in compiling, there is a single compilation errors like this.
util/env_posix.cc:1401:71: error: missing binary operator before token "("
my compiler is same with the recommended version.
[junyoung@junyoung-2:/opt/rocksdb]$ g++ --version
g++ (GCC) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
and os information is here
[junyoung@junyoung-2:/opt/rocksdb]$ uname -a
Darwin junyoung-2.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
to fix the problem I mentioned. we need to apply the following patch to the trunk.
diff --git a/util/env_posix.cc b/util/env_posix.cc
index 16c3d1c..fc97465 100644
--- a/util/env_posix.cc
+++ b/util/env_posix.cc
@@ -1398,12 +1398,14 @@ class PosixEnv : public Env {
(unsigned long)t);
// Set the thread name to aid debugging
-#if defined(_GNU_SOURCE) && defined(__GLIBC_PREREQ) && (__GLIBC_PREREQ(2, 12))
+#if defined(_GNU_SOURCE) && defined(__GLIBC_PREREQ)
+#if defined(__GLIBC_PREREQ(2, 12))
char name_buf[16];
snprintf(name_buf, sizeof name_buf, "rocksdb:bg%zu", bgthreads_.size());
name_buf[sizeof name_buf - 1] = '\0';
pthread_setname_np(t, name_buf);
#endif
+#endif
bgthreads_.push_back(t);
}
Activity
Fix a bug in compaction reads causing checksum mismatches and asan er…
Merge pull request meta#23 from cockroachdb/fsync-errs
Fix a bug in compaction reads causing checksum mismatches and asan er…
Merge pull request meta#23 from mneumann/multithreaded
implement db.getProperty() closes meta#23
Merge pull request meta#23 from Level/greenkeeper/nan-2.8.0
Fix GetMergeOperands() heap-use-after-free on flushed memtable
Fix GetMergeOperands() heap-use-after-free on flushed memtable (#9805)
Fix GetMergeOperands() heap-use-after-free on flushed memtable (#9805)
Revert "Add CompressedSecondaryCache into stress test" #10442 (#10509)
Fix the memory leak in db_stress tests that are caused by `FaultInjec…
Only flush after recovery for retryable IOError (#11880)
3 remaining items
Fix kBlockCacheTier read when merge-chain base value is in a blob file (
Fix AddressSanitizer container-overflow
Fix AddressSanitizer container-overflow
Fix AddressSanitizer container-overflow (#12722)
Fix AddressSanitizer container-overflow (meta#12722)
Fix table handle leak (#14469)
Fix table handle leak (meta#14469)
Fix a bug in compaction reads causing checksum mismatches and asan er…
Fix GetMergeOperands() heap-use-after-free on flushed memtable (meta#…
Revert "Add CompressedSecondaryCache into stress test" meta#10442 (me…
Fix the memory leak in db_stress tests that are caused by `FaultInjec…
Only flush after recovery for retryable IOError (meta#11880)
Fix kBlockCacheTier read when merge-chain base value is in a blob file (
Fix AddressSanitizer container-overflow (meta#12722)
Fix table handle leak (meta#14469)