mirror of https://gitee.com/bigwinds/arangodb
fix buffer overrun when there are more users than DATA_PROTECTOR_MULTIPLICITY
This commit is contained in:
parent
ca5b7661a3
commit
22e14c9444
|
@ -144,7 +144,7 @@ namespace triagens {
|
||||||
|
|
||||||
if (id < 0) {
|
if (id < 0) {
|
||||||
id = _last++;
|
id = _last++;
|
||||||
if (_last > DATA_PROTECTOR_MULTIPLICITY) {
|
if (_last >= DATA_PROTECTOR_MULTIPLICITY) {
|
||||||
_last = 0;
|
_last = 0;
|
||||||
}
|
}
|
||||||
_mySlot = id;
|
_mySlot = id;
|
||||||
|
|
Loading…
Reference in New Issue