Skip to content

Commit 4a76cab

Browse files
duckdblabs-botgithub-actions[bot]
authored andcommitted
Update vendored DuckDB sources to 136dd6ada5
1 parent c5b5ac2 commit 4a76cab

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/duckdb/src/function/table/version/pragma_version.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef DUCKDB_PATCH_VERSION
2-
#define DUCKDB_PATCH_VERSION "3-dev132"
2+
#define DUCKDB_PATCH_VERSION "3-dev136"
33
#endif
44
#ifndef DUCKDB_MINOR_VERSION
55
#define DUCKDB_MINOR_VERSION 4
@@ -8,10 +8,10 @@
88
#define DUCKDB_MAJOR_VERSION 1
99
#endif
1010
#ifndef DUCKDB_VERSION
11-
#define DUCKDB_VERSION "v1.4.3-dev132"
11+
#define DUCKDB_VERSION "v1.4.3-dev136"
1212
#endif
1313
#ifndef DUCKDB_SOURCE_ID
14-
#define DUCKDB_SOURCE_ID "9c1f71da3a"
14+
#define DUCKDB_SOURCE_ID "136dd6ada5"
1515
#endif
1616
#include "duckdb/function/table/system_functions.hpp"
1717
#include "duckdb/main/database.hpp"

src/duckdb/src/storage/checkpoint/table_data_writer.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,15 @@ void SingleFileTableDataWriter::FinalizeTable(const TableStatistics &global_stat
118118
if (!v1_0_0_storage) {
119119
options.emplace("v1_0_0_storage", v1_0_0_storage);
120120
}
121+
122+
// If there is a context available, bind indexes before serialization.
123+
// This is necessary so that buffered index operations are replayed before we checkpoint, otherwise
124+
// we would lose them if there was a restart after this.
125+
if (context && context->transaction.HasActiveTransaction()) {
126+
info.BindIndexes(*context);
127+
}
128+
// FIXME: If we do not have a context, however, the unbound indexes have to be serialized to disk.
129+
121130
auto index_storage_infos = info.GetIndexes().SerializeToDisk(context, options);
122131

123132
auto debug_verify_blocks = DBConfig::GetSetting<DebugVerifyBlocksSetting>(GetDatabase());

0 commit comments

Comments
 (0)