databases/rocksdb: Fix build on i386

Reference:	https://pkg-status.freebsd.org/beefy21/data/140i386-default/02faf78f4c9b/logs/rocksdb-9.2.1.log
This commit is contained in:
Po-Chuan Hsieh
2024-06-03 10:37:26 +08:00
parent e69128d57e
commit d82a47d7c2

View File

@@ -0,0 +1,11 @@
--- db_stress_tool/db_stress_common.cc.orig 2024-05-08 23:03:15 UTC
+++ db_stress_tool/db_stress_common.cc
@@ -200,7 +200,7 @@ void CompressedCacheSetCapacityThread(void* v) {
// Lower by upto 50% of usable block cache capacity
adjustment = (adjustment * thread->rand.Uniform(50)) / 100;
block_cache->SetCapacity(capacity - adjustment);
- fprintf(stdout, "New cache capacity = %lu\n",
+ fprintf(stdout, "New cache capacity = %zu\n",
block_cache->GetCapacity());
db_stress_env->SleepForMicroseconds(10 * 1000 * 1000);
block_cache->SetCapacity(capacity);