From 5506dc22bd9daef9703885722fbe516b7e0ef2d5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 25 Sep 2018 19:59:12 +0100 Subject: [PATCH] cache_store: check DBM values size. This seems to reproduce more crashes (and therefore avoid them). --- Library/Homebrew/cache_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cache_store.rb b/Library/Homebrew/cache_store.rb index 20cd304a7c..1bc48537e3 100644 --- a/Library/Homebrew/cache_store.rb +++ b/Library/Homebrew/cache_store.rb @@ -77,7 +77,7 @@ class CacheStoreDatabase args: [ "-rdbm", "-e", - "DBM.open('#{dbm_file_path}', #{DATABASE_MODE}, DBM::READER).size", + "DBM.open('#{dbm_file_path}', #{DATABASE_MODE}, DBM::READER).values.size", ], print_stderr: false, must_succeed: true,