Skip to content

Commit 2db7aeb

Browse files
committed
Follow @dyemanov suggestions.
1 parent 1a02d77 commit 2db7aeb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/jrd/sort.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2195,7 +2195,7 @@ void SortOwner::unlinkAll()
21952195

21962196
if (buffers.hasData())
21972197
{
2198-
// Here we cache blocks to be reused later
2198+
// Move cached buffers to the database level cache to be reused later by other attachments
21992199

22002200
const size_t MAX_CACHED_SORT_BUFFERS = 8; // 1MB
22012201

src/jrd/sort.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ class SortOwner
431431

432432
private:
433433
MemoryPool& pool;
434-
Database* dbb;
434+
Database* const dbb;
435435
Firebird::SortedArray<Sort*> sorts;
436436
Firebird::HalfStaticArray<UCHAR*, 4> buffers;
437437
};

0 commit comments

Comments
 (0)