From nobody Sun Feb 5 15:54:00 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P8v885CNRz3kSnB; Sun, 5 Feb 2023 15:54:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P8v884mxVz47Jl; Sun, 5 Feb 2023 15:54:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675612440; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eR2mkgorCH09TRIlex3tkHfyhzanZbjAew9E3rFtaBI=; b=Ux4RAggQ03CZJa8qxgE8Sq3xnFDe2N1eCOPvNJ29LFimV9QUVgSqGCcLbVYzyzqkrprt/2 1ROXvyhy+PxEe5QjyUWvDCWIkePRRvB8SMWbjUbL8TL88cNlAjv9Onle0LFYFBiTcEYG+i cOCkgpBgODjIGbjUuXg3kX6eu1gt5rMwpEyKNPkW6uJQZHMRuVOz/sSP07ePmZGO5xW3B7 BSzCUdwWtqYHPmURtRexJieDS6XXewi7Aan5WL3ZHdV73WAdm9NmKOLw/eGjYF21QY/V+c SaMl/KhkPcm7XGmGY1f3wbMuVvpKJcl6qpr5BuIAMB3m/dYSuq97DyWxGISNrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675612440; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eR2mkgorCH09TRIlex3tkHfyhzanZbjAew9E3rFtaBI=; b=MhDK0O2EgoBn4MsA0SktbSXlAdNQlYsIbeRh1PFeCfWMa6dh27QlVb0o6zoHGOCcoGIZyQ DIvOUyZU/uq0aMrqBXsRcQCCoZJihTAr4foCr0i5toxe6AB+xNJ74mpyXr0SoscrirYFh3 QDv22tBiC87PtdMy++ydbF0swYxKArzAgG+y+vCwvZUzBGS9vcUaIcRsvJVtcV8HRLbcj5 1P5eP/GSA8k602Y5PqDpaM8KNzdefenZ8oVR4haJ1jaf/MTeUD+2nF20PmqCuuMTWJ5qVS s7UyZGQlheMzBdFDrqFuCpuGOESy50KiuPHkndd0CEaMm8euCSv7TdgNojmrCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675612440; a=rsa-sha256; cv=none; b=ON+A3Fztpsk2qT88pYoJ4HMJtzcUDIPReMAmjNO1UFwMOXoUvUb0xgnFSzfV9YACrUjbBS Z7zKXpOhAcFCzSN0POe9yuZnitUMCXT9PmLzDc3yNJDR5cZXvnhbEZjmuHwpjOfSGio8b6 2oGbdFV3Y6VQ1tDmKZzf9OqhpCFFV5OoNRwJ7DeM/Jf76ZvIXno0ukevFIOOAms21TnxSa G8mJgxaGz49q7COcc5EQ9bEKJaKEOY/Ud8BSdySntIz4GONqilRXhrp2WAcYdkHjJQhtDU fmqr6FlHukZ7dlScRBdVSIiwGtGlLPnB01YD7zlzW8ymPCH3oewfEaVflPh0fg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P8v883jDSz10d8; Sun, 5 Feb 2023 15:54:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 315Fs0PM028805; Sun, 5 Feb 2023 15:54:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 315Fs0wM028804; Sun, 5 Feb 2023 15:54:00 GMT (envelope-from git) Date: Sun, 5 Feb 2023 15:54:00 GMT Message-Id: <202302051554.315Fs0wM028804@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 42761afdd072 - main - databases/rocksdb: Update to 7.9.2 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 42761afdd0729a6a3f8ad02780ded274e78a3abb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=42761afdd0729a6a3f8ad02780ded274e78a3abb commit 42761afdd0729a6a3f8ad02780ded274e78a3abb Author: Po-Chuan Hsieh AuthorDate: 2023-02-05 15:17:18 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-02-05 15:47:41 +0000 databases/rocksdb: Update to 7.9.2 Changes: https://github.com/facebook/rocksdb/releases --- databases/rocksdb/Makefile | 2 +- databases/rocksdb/distinfo | 6 ++--- databases/rocksdb/files/patch-db-db_test_util.cc | 28 ++++++++++++------------ databases/rocksdb/files/patch-env-io_posix.h | 11 ++++++++++ 4 files changed, 29 insertions(+), 18 deletions(-) diff --git a/databases/rocksdb/Makefile b/databases/rocksdb/Makefile index 68cb80f16c75..158ba228a044 100644 --- a/databases/rocksdb/Makefile +++ b/databases/rocksdb/Makefile @@ -1,5 +1,5 @@ PORTNAME= rocksdb -PORTVERSION= 7.8.3 +PORTVERSION= 7.9.2 DISTVERSIONPREFIX= v CATEGORIES= databases diff --git a/databases/rocksdb/distinfo b/databases/rocksdb/distinfo index 412d2e51bdbc..1b131de2dc75 100644 --- a/databases/rocksdb/distinfo +++ b/databases/rocksdb/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1674589480 -SHA256 (facebook-rocksdb-v7.8.3_GH0.tar.gz) = b85408a374770897332bf15e51620a5f35720dd416a4749e3899057f9cfaf84d -SIZE (facebook-rocksdb-v7.8.3_GH0.tar.gz) = 10782632 +TIMESTAMP = 1675190923 +SHA256 (facebook-rocksdb-v7.9.2_GH0.tar.gz) = 886378093098a1b2521b824782db7f7dd86224c232cf9652fcaf88222420b292 +SIZE (facebook-rocksdb-v7.9.2_GH0.tar.gz) = 12058713 diff --git a/databases/rocksdb/files/patch-db-db_test_util.cc b/databases/rocksdb/files/patch-db-db_test_util.cc index 2bc1fd7b68b5..2601adc031a5 100644 --- a/databases/rocksdb/files/patch-db-db_test_util.cc +++ b/databases/rocksdb/files/patch-db-db_test_util.cc @@ -1,4 +1,4 @@ ---- db/db_test_util.cc.orig 2022-06-08 21:08:16 UTC +--- db/db_test_util.cc.orig 2022-12-22 17:30:39 UTC +++ db/db_test_util.cc @@ -104,9 +104,11 @@ DBTestBase::DBTestBase(const std::string path, bool en } @@ -29,16 +29,16 @@ if (kMustFreeHeapAllocations && !options_override.full_block_cache) { // Detecting block cache use-after-free is normally difficult in unit @@ -428,7 +432,9 @@ Options DBTestBase::GetOptions( - options.use_direct_reads = true; - options.use_direct_io_for_flush_and_compaction = true; - options.compaction_readahead_size = 2 * 1024 * 1024; + options.use_direct_reads = true; + options.use_direct_io_for_flush_and_compaction = true; + options.compaction_readahead_size = 2 * 1024 * 1024; +#ifndef NDEBUG - SetupSyncPointsToMockDirectIO(); + SetupSyncPointsToMockDirectIO(); +#endif - break; - } + break; + } #endif // ROCKSDB_LITE -@@ -1149,6 +1155,7 @@ std::string DBTestBase::FilesPerLevel(int cf) { +@@ -1168,6 +1174,7 @@ std::string DBTestBase::FilesPerLevel(int cf) { #endif // !ROCKSDB_LITE @@ -46,7 +46,7 @@ std::vector DBTestBase::GetBlobFileNumbers() { VersionSet* const versions = dbfull()->GetVersionSet(); assert(versions); -@@ -1174,6 +1181,7 @@ std::vector DBTestBase::GetBlobFileNumbers() +@@ -1193,6 +1200,7 @@ std::vector DBTestBase::GetBlobFileNumbers() return result; } @@ -54,7 +54,7 @@ size_t DBTestBase::CountFiles() { size_t count = 0; -@@ -1256,6 +1264,7 @@ void DBTestBase::FillLevels(const std::string& smalles +@@ -1275,6 +1283,7 @@ void DBTestBase::FillLevels(const std::string& smalles } void DBTestBase::MoveFilesToLevel(int level, int cf) { @@ -62,7 +62,7 @@ for (int l = 0; l < level; ++l) { if (cf > 0) { EXPECT_OK(dbfull()->TEST_CompactRange(l, nullptr, nullptr, handles_[cf])); -@@ -1263,13 +1272,16 @@ void DBTestBase::MoveFilesToLevel(int level, int cf) { +@@ -1282,13 +1291,16 @@ void DBTestBase::MoveFilesToLevel(int level, int cf) { EXPECT_OK(dbfull()->TEST_CompactRange(l, nullptr, nullptr)); } } @@ -79,7 +79,7 @@ for (int level = 0; level < db_->NumberLevels(); level++) { int num = NumTableFilesAtLevel(level); if (num > 0) { -@@ -1310,10 +1322,12 @@ void DBTestBase::GenerateNewFile(int cf, Random* rnd, +@@ -1331,10 +1343,12 @@ void DBTestBase::GenerateNewFile(int cf, Random* rnd, ASSERT_OK(Put(cf, Key(*key_idx), rnd->RandomString((i == 99) ? 1 : 990))); (*key_idx)++; } @@ -92,7 +92,7 @@ } // this will generate non-overlapping files since it keeps increasing key_idx -@@ -1322,10 +1336,12 @@ void DBTestBase::GenerateNewFile(Random* rnd, int* key +@@ -1343,10 +1357,12 @@ void DBTestBase::GenerateNewFile(Random* rnd, int* key ASSERT_OK(Put(Key(*key_idx), rnd->RandomString((i == 99) ? 1 : 990))); (*key_idx)++; } @@ -105,7 +105,7 @@ } const int DBTestBase::kNumKeysByGenerateNewRandomFile = 51; -@@ -1335,10 +1351,12 @@ void DBTestBase::GenerateNewRandomFile(Random* rnd, bo +@@ -1356,10 +1372,12 @@ void DBTestBase::GenerateNewRandomFile(Random* rnd, bo ASSERT_OK(Put("key" + rnd->RandomString(7), rnd->RandomString(2000))); } ASSERT_OK(Put("key" + rnd->RandomString(7), rnd->RandomString(200))); diff --git a/databases/rocksdb/files/patch-env-io_posix.h b/databases/rocksdb/files/patch-env-io_posix.h new file mode 100644 index 000000000000..837f4ab039e3 --- /dev/null +++ b/databases/rocksdb/files/patch-env-io_posix.h @@ -0,0 +1,11 @@ +--- env/io_posix.h.orig 2022-12-22 17:30:39 UTC ++++ env/io_posix.h +@@ -29,7 +29,7 @@ + + // For non linux platform, the following macros are used only as place + // holder. +-#if !(defined OS_LINUX) && !(defined CYGWIN) && !(defined OS_AIX) ++#if !(defined OS_LINUX) && !(defined CYGWIN) && !(defined OS_AIX) && !(defined OS_FREEBSD) + #define POSIX_FADV_NORMAL 0 /* [MC1] no further special treatment */ + #define POSIX_FADV_RANDOM 1 /* [MC1] expect random page refs */ + #define POSIX_FADV_SEQUENTIAL 2 /* [MC1] expect sequential page refs */