From 2a887f416a307c466df3cc3ffafa37ef4784d640 Mon Sep 17 00:00:00 2001 From: hvlad Date: Wed, 24 May 2017 19:58:07 +0300 Subject: [PATCH] Avoid assert in DEBUG build of CS\SC --- src/jrd/cch.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jrd/cch.cpp b/src/jrd/cch.cpp index edfbc5a5c9..5cee974c38 100644 --- a/src/jrd/cch.cpp +++ b/src/jrd/cch.cpp @@ -713,6 +713,9 @@ LockState CCH_fetch_lock(thread_db* tdbb, WIN* window, int lock_type, int wait, // lock_buffer returns 0 or 1 or -1. const LockState lock_result = lock_buffer(tdbb, bdb, wait, page_type); + if (lock_result == lsLocked) + bdb->bdb_flags |= BDB_read_pending; + return lock_result; }