Set a LMDB mapsize and also provide a config option to control it (#44954)
This commit is contained in:
11
bin/tests/system/checkconf/bad-lmdb-mapsize-bogus.conf
Normal file
11
bin/tests/system/checkconf/bad-lmdb-mapsize-bogus.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
options {
|
||||
lmdb-mapsize bogusvalue;
|
||||
};
|
||||
11
bin/tests/system/checkconf/bad-lmdb-mapsize-toolarge.conf
Normal file
11
bin/tests/system/checkconf/bad-lmdb-mapsize-toolarge.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
options {
|
||||
lmdb-mapsize 2048G;
|
||||
};
|
||||
11
bin/tests/system/checkconf/bad-lmdb-mapsize-toosmall.conf
Normal file
11
bin/tests/system/checkconf/bad-lmdb-mapsize-toosmall.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
options {
|
||||
lmdb-mapsize 1;
|
||||
};
|
||||
11
bin/tests/system/checkconf/bad-lmdb-mapsize-unlimited.conf
Normal file
11
bin/tests/system/checkconf/bad-lmdb-mapsize-unlimited.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
options {
|
||||
lmdb-mapsize unlimited;
|
||||
};
|
||||
11
bin/tests/system/checkconf/good-lmdb-mapsize-largest.conf
Normal file
11
bin/tests/system/checkconf/good-lmdb-mapsize-largest.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
options {
|
||||
lmdb-mapsize 1024G;
|
||||
};
|
||||
11
bin/tests/system/checkconf/good-lmdb-mapsize-smallest.conf
Normal file
11
bin/tests/system/checkconf/good-lmdb-mapsize-smallest.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
options {
|
||||
lmdb-mapsize 1M;
|
||||
};
|
||||
Reference in New Issue
Block a user