]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/log
rocksdb.git
9 years agoMakefile: generate util/build_version.cc from .in file wip-cmake-build-version 13/head
Kefu Chai [Tue, 11 Oct 2016 07:13:09 +0000 (15:13 +0800)]
Makefile: generate util/build_version.cc from .in file

* util/build_verion.cc.in: add this file, so cmake and make can share the
  template file for generating util/build_version.cc.
* CMakeLists.txt: also, cmake v2.8.11 does not support file(GENERATE ...),
  so we are using configure_file() for creating build_version.cc.
* Makefile: use util/build_verion.cc.in for creating build_version.cc.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
9 years agoAvoid string CONCAT which is not supported in cmake 2.6 (#1383)
Bassam Tabbara [Tue, 11 Oct 2016 00:32:04 +0000 (17:32 -0700)]
Avoid string CONCAT which is not supported in cmake 2.6 (#1383)

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
9 years agoSupport running consistency checks in release mode
Islam AbdelRahman [Sat, 8 Oct 2016 00:21:45 +0000 (17:21 -0700)]
Support running consistency checks in release mode

Summary:
We always run consistency checks when compiling in debug mode
allow users to set Options::force_consistency_checks to true to be able to run such checks even when compiling in release mode

Test Plan:
make check -j64
make release

Reviewers: lightmark, sdong, yiwu

Reviewed By: yiwu

Subscribers: hermanlee4, andrewkr, yoshinorim, jkedgar, dhruba

Differential Revision: https://reviews.facebook.net/D64701

9 years agoFix -ve std::string::resize
Islam AbdelRahman [Sat, 8 Oct 2016 00:16:13 +0000 (17:16 -0700)]
Fix -ve std::string::resize

Summary:
I saw this exception thrown because sometimes we may resize with -ve value
if we have empty max_bytes_for_level_multiplier_additional vector

Test Plan: run the tests

Reviewers: yiwu

Reviewed By: yiwu

Subscribers: andrewkr, dhruba

Differential Revision: https://reviews.facebook.net/D64791

9 years agoTesting asset links after config change
Joel Marcey [Fri, 7 Oct 2016 23:28:44 +0000 (16:28 -0700)]
Testing asset links after config change

9 years agoMake Lock Info test multiple column families
Reid Horuff [Thu, 6 Oct 2016 18:52:57 +0000 (11:52 -0700)]
Make Lock Info test multiple column families

Summary: Modifies the lock info export test to test multiple column families after I was experiencing a bug while developing the MyRocks front-end for this.

Test Plan: is test.

Reviewers: mung

Reviewed By: mung

Subscribers: andrewkr, dhruba

Differential Revision: https://reviews.facebook.net/D64725

9 years agoRevert "Support SST files with Global sequence numbers"
Islam AbdelRahman [Fri, 7 Oct 2016 20:59:16 +0000 (13:59 -0700)]
Revert "Support SST files with Global sequence numbers"

This reverts commit ab01da5437385e3142689077c647a3b13ba3402f.

9 years ago[RocksJava] Adjusted RateLimiter to 3.10.0 (#1368)
Adam Retter [Fri, 7 Oct 2016 19:32:21 +0000 (15:32 -0400)]
[RocksJava] Adjusted RateLimiter to 3.10.0 (#1368)

Summary:
- Deprecated RateLimiterConfig and GenericRateLimiterConfig
- Introduced RateLimiter

It is now possible to use all C++ related methods also in RocksJava.
A noteable method is setBytesPerSecond which can change the allowed
number of bytes per second at runtime.

Test Plan:
make rocksdbjava
make jtest

Reviewers: adamretter, yhchiang, ankgup87

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D35715

9 years agoExpose Transaction State Publicly
Reid Horuff [Wed, 5 Oct 2016 20:39:00 +0000 (13:39 -0700)]
Expose Transaction State Publicly

Summary:
This exposes a transactions state through a public api rather than through a public member variable. I also do some name refactoring.
ExecutionStatus => TransactionState
exec_status_ => trx_state_

Test Plan: It compiles and transaction_test passes.

Reviewers: IslamAbdelRahman

Reviewed By: IslamAbdelRahman

Subscribers: andrewkr, mung, dhruba, sdong

Differential Revision: https://reviews.facebook.net/D64689

9 years agoAdd facility to write only a portion of WriteBatch to WAL
Reid Horuff [Fri, 7 Oct 2016 18:31:26 +0000 (11:31 -0700)]
Add facility to write only a portion of WriteBatch to WAL

Summary:
When constructing a write batch a client may now call MarkWalTerminationPoint() on that batch. No batch operations after this call will be added written to the WAL but will still be inserted into the Memtable. This facility is used to remove one of the three WriteImpl calls in 2PC transactions. This produces a ~1% perf improvement.

```
RocksDB - unoptimized 2pc, sync_binlog=1, disable_2pc=off
INFO 2016-08-31 14:30:38,814 [main]: REQUEST PHASE COMPLETED. 75000000 requests done in 2619 seconds. Requests/second = 28628

RocksDB - optimized 2pc , sync_binlog=1, disable_2pc=off
INFO 2016-08-31 16:26:59,442 [main]: REQUEST PHASE COMPLETED. 75000000 requests done in 2581 seconds. Requests/second = 29054
```

Test Plan: Two unit tests added.

Reviewers: sdong, yiwu, IslamAbdelRahman

Reviewed By: yiwu

Subscribers: hermanlee4, dhruba, andrewkr

Differential Revision: https://reviews.facebook.net/D64599