@nxtedition/rocksdb 7.1.27 → 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
@@ -439,8 +439,8 @@ struct BaseIterator : public Closable {
439
439
  std::unique_ptr<rocksdb::Iterator> iterator_;
440
440
  const bool reverse_;
441
441
  const int limit_;
442
- const bool tailing_;
443
442
  const bool fillCache_;
443
+ const bool tailing_;
444
444
  };
445
445
 
446
446
  struct Iterator final : public BaseIterator {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "7.1.27",
3
+ "version": "7.1.29",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
Binary file
Binary file