Daniel Black ede73d650c table/block.h: change memset
Summary:
In gcc-7 the following is an error identified by -Werror=class-memaccess

In file included from ./table/get_context.h:14:0,
                 from db/version_set.cc:43:
./table/block.h: In constructor ‘rocksdb::BlockReadAmpBitmap::BlockReadAmpBitmap(size_t, size_t, rocksdb::Statistics*)’:
./table/block.h:73:53: error: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct std::atomic<unsigned int>’ with no trivial copy-assignment; use value-initialization instead [-Werror=class-memaccess]
     memset(bitmap_, 0, bitmap_size * kBytesPersEntry);
                                                     ^
In file included from ./db/version_set.h:23:0,
                 from db/version_set.cc:12:
/toolchain/include/c++/8.0.0/atomic:684:12: note: ‘struct std::atomic<unsigned int>’ declared here
     struct atomic<unsigned int> : __atomic_base<unsigned int>
            ^~~~~~~~~~~~~~~~~~~~

As a solution the default initializer can be applied in list context.

Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
Closes https://github.com/facebook/rocksdb/pull/2561

Differential Revision: D5398714

Pulled By: siying

fbshipit-source-id: d883fb88ec7535eee60d551038fe91f14488be36
2019-10-30 14:00:55 -07:00
2017-07-14 15:45:36 -07:00
2017-07-26 11:31:01 -07:00
2017-04-06 14:09:13 -07:00
2014-11-03 14:53:00 -08:00
2019-10-30 13:54:49 -07:00
2017-07-05 16:41:30 -07:00
2017-07-26 11:31:01 -07:00
2017-07-26 11:31:01 -07:00
2017-07-26 11:31:01 -07:00
2017-11-28 12:25:25 -08:00
2017-07-26 11:31:58 -07:00
2017-07-26 11:31:01 -07:00
2017-07-26 11:31:01 -07:00
2019-10-30 14:00:55 -07:00
2017-07-26 11:31:01 -07:00
2017-08-31 14:03:03 -07:00
2017-07-26 11:31:01 -07:00
2017-05-23 10:42:59 -07:00
2017-04-05 11:39:20 -07:00
2014-09-29 10:52:18 -07:00
2017-04-27 18:06:12 -07:00
2017-11-28 12:25:25 -08:00
2017-02-16 17:24:10 -08:00
2017-07-26 11:31:01 -07:00
2017-07-10 12:29:24 -07:00
2016-07-26 13:54:08 -07:00
2015-05-29 14:36:35 -07:00
2017-08-31 14:03:03 -07:00
2017-08-31 14:03:03 -07:00
2017-06-13 16:58:01 -07:00

RocksDB: A Persistent Key-Value Store for Flash and RAM Storage

Build Status Build status

RocksDB is developed and maintained by Facebook Database Engineering Team. It is built on earlier work on LevelDB by Sanjay Ghemawat (sanjay@google.com) and Jeff Dean (jeff@google.com)

This code is a library that forms the core building block for a fast key value server, especially suited for storing data on flash drives. It has a Log-Structured-Merge-Database (LSM) design with flexible tradeoffs between Write-Amplification-Factor (WAF), Read-Amplification-Factor (RAF) and Space-Amplification-Factor (SAF). It has multi-threaded compactions, making it specially suitable for storing multiple terabytes of data in a single database.

Start with example usage here: https://github.com/facebook/rocksdb/tree/master/examples

See the github wiki for more explanation.

The public interface is in include/. Callers should not include or rely on the details of any other header files in this package. Those internal APIs may be changed without warning.

Design discussions are conducted in https://www.facebook.com/groups/rocksdb.dev/

Description
A library that provides an embeddable, persistent key-value store for fast storage.
Readme 271 MiB
Languages
C++ 82.1%
Java 10.3%
C 2.5%
Python 1.7%
Perl 1.1%
Other 2.1%