ports/databases/rocksdb/files/patch-util-env_posix.cc
Sunpoet Po-Chuan Hsieh da0c14ecd3 - Add rocksdb 3.2
RocksDB is an embeddable persistent key-value store for fast storage. RocksDB
can also be the foundation for a client-server database but our current focus is
on embedded workloads.

RocksDB builds on LevelDB to be scalable to run on servers with many CPU cores,
to efficiently use fast storage, to support IO-bound, in-memory and write-once
workloads, and to be flexible to allow for innovation.

GitHub repository at https://github.com/facebook/rocksdb

WWW: http://rocksdb.org/
2014-07-22 17:42:24 +00:00

12 lines
358 B
C++

--- util/env_posix.cc.orig 2014-06-20 07:40:32.000000000 +0800
+++ util/env_posix.cc 2014-07-22 22:10:43.909825684 +0800
@@ -1315,7 +1315,7 @@
}
virtual uint64_t NowNanos() {
-#ifdef OS_LINUX
+#ifdef OS_FREEBSD
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return static_cast<uint64_t>(ts.tv_sec) * 1000000000 + ts.tv_nsec;