mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
fix comments
This commit is contained in:
parent
27fca17421
commit
4c021b8d80
@ -127,7 +127,7 @@ public:
|
||||
granted++;
|
||||
allocated++;
|
||||
return allocated < limit;
|
||||
// WARNING: `waiter` iterator is invalided after returning false
|
||||
// WARNING: `waiter` iterator is invalidated after returning false
|
||||
}
|
||||
|
||||
ConcurrencyControl & parent;
|
||||
@ -136,7 +136,7 @@ public:
|
||||
const Slots limit;
|
||||
|
||||
std::mutex mutex; // the following values must be accessed under this mutex
|
||||
Slots allocated = 0;
|
||||
Slots allocated = 0; // allocated total (including already released)
|
||||
Slots granted = 0; // allocated, but not yet acquired
|
||||
Slots released = 0;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user