duckdb 0.6.2-dev23.0 → 0.6.2-dev29.0

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
4
  "types": "./lib/duckdb.d.ts",
5
- "version": "0.6.2-dev23.0",
5
+ "version": "0.6.2-dev29.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -5543,6 +5543,7 @@ void CatalogSet::CleanupEntry(CatalogEntry *catalog_entry) {
5543
5543
  // destroy the backed up entry: it is no longer required
5544
5544
  D_ASSERT(catalog_entry->parent);
5545
5545
  if (catalog_entry->parent->type != CatalogType::UPDATED_ENTRY) {
5546
+ lock_guard<mutex> write_lock(catalog.write_lock);
5546
5547
  lock_guard<mutex> lock(catalog_lock);
5547
5548
  if (!catalog_entry->deleted) {
5548
5549
  // delete the entry from the dependency manager, if it is not deleted yet
@@ -224936,6 +224937,12 @@ void CommitState::CommitEntry(UndoFlags type, data_ptr_t data) {
224936
224937
  // set the commit timestamp of the catalog entry to the given id
224937
224938
  auto catalog_entry = Load<CatalogEntry *>(data);
224938
224939
  D_ASSERT(catalog_entry->parent);
224940
+
224941
+ auto &catalog = catalog_entry->catalog;
224942
+ D_ASSERT(catalog);
224943
+
224944
+ // Grab a write lock on the catalog
224945
+ lock_guard<mutex> write_lock(catalog->write_lock);
224939
224946
  catalog_entry->set->UpdateTimestamp(catalog_entry->parent, commit_id);
224940
224947
  if (catalog_entry->name != catalog_entry->parent->name) {
224941
224948
  catalog_entry->set->UpdateTimestamp(catalog_entry, commit_id);
package/src/duckdb.hpp CHANGED
@@ -11,8 +11,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
11
11
  #pragma once
12
12
  #define DUCKDB_AMALGAMATION 1
13
13
  #define DUCKDB_AMALGAMATION_EXTENDED 1
14
- #define DUCKDB_SOURCE_ID "6f67ea9ef0"
15
- #define DUCKDB_VERSION "v0.6.2-dev23"
14
+ #define DUCKDB_SOURCE_ID "0f2becd686"
15
+ #define DUCKDB_VERSION "v0.6.2-dev29"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //