-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let drop column family mutual exclusion with other operations #1202
Conversation
* use ReadWriteLock Change-Id: Id68401b568d7de8910026fcf420947d42bf23802
Codecov Report
@@ Coverage Diff @@
## master #1202 +/- ##
=============================================
+ Coverage 29.65% 64.70% +35.04%
- Complexity 263 5758 +5495
=============================================
Files 75 366 +291
Lines 4208 30166 +25958
Branches 510 4276 +3766
=============================================
+ Hits 1248 19518 +18270
- Misses 2797 8668 +5871
- Partials 163 1980 +1817
Continue to review full report at Codecov.
|
@@ -247,6 +251,36 @@ public synchronized void dropTable(String... tables) | |||
} | |||
} | |||
|
|||
public void reload() throws RocksDBException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unneeded to reload rocksdb if not operate batch after CF is dropped.
but we can keep these code for future use (don't --amend)
Change-Id: I823030bc9ab23ac5612f74bddd9f9dff40e4a5cf
...raph-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBStdSessions.java
Outdated
Show resolved
Hide resolved
hugegraph-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBStore.java
Outdated
Show resolved
Hide resolved
hugegraph-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBStore.java
Outdated
Show resolved
Hide resolved
Change-Id: I32a896790b9a28e2fac90cdddd258ef306cd296a
@@ -87,6 +88,7 @@ public RocksDBStdSessions(HugeConfig config, String database, String store, | |||
String dataPath, String walPath) | |||
throws RocksDBException { | |||
super(config, database, store); | |||
this.config = config; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Config can be removed by making config protected in super class.
@@ -112,6 +114,7 @@ public RocksDBStdSessions(HugeConfig config, String database, String store, | |||
String dataPath, String walPath, | |||
List<String> cfNames) throws RocksDBException { | |||
super(config, database, store); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using constructor chain by this(...) can reduce some duplicate codes.
…#1202) * use ReadWriteLock * don't reload rocksdb Change-Id: I32a896790b9a28e2fac90cdddd258ef306cd296a
Change-Id: Id68401b568d7de8910026fcf420947d42bf23802