BIND 10 trac2637, updated. bb6afeceea763fdfd012b8a2b6e9e4247f2d623d [2637] Use logger to issue the warning about using memfile lease backend.
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jan 17 11:51:51 UTC 2013
The branch, trac2637 has been updated
via bb6afeceea763fdfd012b8a2b6e9e4247f2d623d (commit)
via 931a65b517fd80cf03afbd8ff3c5c70a121f66e5 (commit)
from 54d482bf70ce2878423df57efd6bbb8138805914 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bb6afeceea763fdfd012b8a2b6e9e4247f2d623d
Author: Marcin Siodelski <marcin at isc.org>
Date: Thu Jan 17 12:51:38 2013 +0100
[2637] Use logger to issue the warning about using memfile lease backend.
commit 931a65b517fd80cf03afbd8ff3c5c70a121f66e5
Author: Marcin Siodelski <marcin at isc.org>
Date: Thu Jan 17 12:23:46 2013 +0100
[2637] Removed spurious commas from dhcpX.spec files.
-----------------------------------------------------------------------
Summary of changes:
src/bin/dhcp4/dhcp4.spec | 6 +++---
src/bin/dhcp6/dhcp6.spec | 6 +++---
src/lib/dhcpsrv/dhcpsrv_messages.mes | 6 ++++++
src/lib/dhcpsrv/memfile_lease_mgr.cc | 3 +--
4 files changed, 13 insertions(+), 8 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/dhcp4/dhcp4.spec b/src/bin/dhcp4/dhcp4.spec
index c2b755c..6bf1f26 100644
--- a/src/bin/dhcp4/dhcp4.spec
+++ b/src/bin/dhcp4/dhcp4.spec
@@ -55,13 +55,13 @@
{ "item_name": "code",
"item_type": "integer",
"item_optional": false,
- "item_default": 0,
+ "item_default": 0
},
{ "item_name": "type",
"item_type": "string",
"item_optional": false,
- "item_default": "",
+ "item_default": ""
},
{ "item_name": "array",
@@ -73,7 +73,7 @@
{ "item_name": "record_types",
"item_type": "string",
"item_optional": false,
- "item_default": "",
+ "item_default": ""
},
{ "item_name": "space",
diff --git a/src/bin/dhcp6/dhcp6.spec b/src/bin/dhcp6/dhcp6.spec
index b719ebb..add9ce5 100644
--- a/src/bin/dhcp6/dhcp6.spec
+++ b/src/bin/dhcp6/dhcp6.spec
@@ -61,13 +61,13 @@
{ "item_name": "code",
"item_type": "integer",
"item_optional": false,
- "item_default": 0,
+ "item_default": 0
},
{ "item_name": "type",
"item_type": "string",
"item_optional": false,
- "item_default": "",
+ "item_default": ""
},
{ "item_name": "array",
@@ -79,7 +79,7 @@
{ "item_name": "record_types",
"item_type": "string",
"item_optional": false,
- "item_default": "",
+ "item_default": ""
},
{ "item_name": "space",
diff --git a/src/lib/dhcpsrv/dhcpsrv_messages.mes b/src/lib/dhcpsrv/dhcpsrv_messages.mes
index 27f12fc..8f5a467 100644
--- a/src/lib/dhcpsrv/dhcpsrv_messages.mes
+++ b/src/lib/dhcpsrv/dhcpsrv_messages.mes
@@ -226,6 +226,12 @@ a database backend, but where no 'type' keyword has been included in
the access string. The access string (less any passwords) is included
in the message.
+% DHCPSRV_USING_MEMFILE_BACKEND using memfile database backend, leases will be lost after restart
+This warning message is issued when the server is configured to use default
+'memfile' backend to store leases. The leases held by this backend are
+lost on server's restart. Currently 'memfile' backend is usable for testing
+purposes mainly.
+
% DHCPSRV_UNKNOWN_DB unknown database type: %1
The database access string specified a database type (given in the
message) that is unknown to the software. This is a configuration error.
diff --git a/src/lib/dhcpsrv/memfile_lease_mgr.cc b/src/lib/dhcpsrv/memfile_lease_mgr.cc
index 34f21e9..050012b 100644
--- a/src/lib/dhcpsrv/memfile_lease_mgr.cc
+++ b/src/lib/dhcpsrv/memfile_lease_mgr.cc
@@ -22,8 +22,7 @@ using namespace isc::dhcp;
Memfile_LeaseMgr::Memfile_LeaseMgr(const ParameterMap& parameters)
: LeaseMgr(parameters) {
- std::cout << "Warning: Using memfile database backend. It is usable for limited"
- << " testing only. Leases will be lost after restart." << std::endl;
+ LOG_WARN(dhcpsrv_logger, DHCPSRV_USING_MEMFILE_BACKEND);
}
Memfile_LeaseMgr::~Memfile_LeaseMgr() {
More information about the bind10-changes
mailing list