You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .github/workflows/docs_build.yml
+3-16
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ on:
5
5
version: { type: string, required: false, description: "The version to build (used in git and pypi). git-tag='v{version}-docs'. If not specified then use selected branch and wheel from the last successful build."}
6
6
latest: { type: boolean, required: false, description: Alias this version as the 'latest' stable docs. This should be set for the latest stable release.}
7
7
deploy: { type: boolean, required: false, description: Push the built docs to the docs-pages branch on github.}
ARCTICDB_TRACE(log::storage(), "Header doesn't fit in internal buffer, needed {} bytes but had {}, writing to temp buffer at {:x}", hdr_size, buffer_.preamble_bytes(),uintptr_t(tmp->data()));
283
-
tmp->ensure(calculate_size());
283
+
auto bytes_to_copy = buffer().bytes();
284
+
auto offset = FIXED_HEADER_SIZE + hdr_size;
285
+
286
+
auto total_size = offset + bytes_to_copy;
287
+
288
+
// Verify we have enough space for everything
289
+
tmp->ensure(total_size);
290
+
util::check(tmp->available() >= total_size,
291
+
"Buffer available space {} is less than required size {}",
292
+
tmp->available(),
293
+
total_size);
294
+
295
+
// This is both a sanity check and a way to populate the segment with the correct size
296
+
auto calculated_size = calculate_size();
297
+
util::check(total_size == calculated_size, "Expected total size {} to be equal to calculated size {}", total_size, calculated_size);
0 commit comments