File: fix_db_test.patch

package info (click to toggle)
rocksdb 9.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 46,088 kB
  • sloc: cpp: 500,771; java: 42,992; ansic: 9,789; python: 8,373; perl: 5,822; sh: 4,921; makefile: 2,386; asm: 550; xml: 342
file content (28 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: "Laszlo Boszormenyi (GCS)" <gcs@debian.org>
Date: Sun, 24 Nov 2024 23:29:27 -0800
Subject: limit block_size to 32 bit

Forwarded: no
Last-Update: 2021-10-16

Make the block_size to 3 Gb only on i386 and mipsel.
---
 db/db_test.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/db/db_test.cc b/db/db_test.cc
index ba65a7b..0d614ed 100644
--- a/db/db_test.cc
+++ b/db/db_test.cc
@@ -7350,7 +7350,11 @@ TEST_F(DBTest, LargeBlockSizeTest) {
   CreateAndReopenWithCF({"pikachu"}, options);
   ASSERT_OK(Put(0, "foo", "bar"));
   BlockBasedTableOptions table_options;
+#if !defined(__i386__) && !defined(__mips__)
   table_options.block_size = 8LL * 1024 * 1024 * 1024LL;
+#else
+  table_options.block_size = 3LL * 1024 * 1024 * 1024LL;
+#endif
   options.table_factory.reset(NewBlockBasedTableFactory(table_options));
   ASSERT_NOK(TryReopenWithColumnFamilies({"default", "pikachu"}, options));
 }