@nxtedition/rocksdb 7.1.28 → 7.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.cc
CHANGED
|
@@ -1520,6 +1520,9 @@ NAPI_METHOD(batch_write) {
|
|
|
1520
1520
|
bool sync = false;
|
|
1521
1521
|
NAPI_STATUS_THROWS(GetProperty(env, options, "sync", sync));
|
|
1522
1522
|
|
|
1523
|
+
bool lowPriority = false;
|
|
1524
|
+
NAPI_STATUS_THROWS(GetProperty(env, options, "lowPriority", lowPriority));
|
|
1525
|
+
|
|
1523
1526
|
napi_ref batchRef;
|
|
1524
1527
|
NAPI_STATUS_THROWS(napi_create_reference(env, argv[1], 1, &batchRef));
|
|
1525
1528
|
|
|
@@ -1528,6 +1531,7 @@ NAPI_METHOD(batch_write) {
|
|
|
1528
1531
|
[=](int64_t& seq) {
|
|
1529
1532
|
rocksdb::WriteOptions writeOptions;
|
|
1530
1533
|
writeOptions.sync = sync;
|
|
1534
|
+
writeOptions.low_pri = lowPriority;
|
|
1531
1535
|
|
|
1532
1536
|
// TODO (fix): Better way to get batch sequence?
|
|
1533
1537
|
seq = database->db->GetLatestSequenceNumber() + 1;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|