File: fix_db_test.patch

package info (click to toggle)
rocksdb 9.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,252 kB
  • sloc: cpp: 503,390; java: 43,039; ansic: 9,834; python: 8,381; 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
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 003f3c5..f4a1da7 100644
--- a/db/db_test.cc
+++ b/db/db_test.cc
@@ -7481,7 +7481,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));
 }