summaryrefslogtreecommitdiff
path: root/test/tcl/env014.tcl
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-02-17 17:25:57 +0000
committer <>2015-03-17 16:26:24 +0000
commit780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch)
tree598f8b9fa431b228d29897e798de4ac0c1d3d970 /test/tcl/env014.tcl
parent7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff)
downloadberkeleydb-master.tar.gz
Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz.HEADdb-6.1.23master
Diffstat (limited to 'test/tcl/env014.tcl')
-rw-r--r--test/tcl/env014.tcl18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/tcl/env014.tcl b/test/tcl/env014.tcl
index f09917c7..2ee3967a 100644
--- a/test/tcl/env014.tcl
+++ b/test/tcl/env014.tcl
@@ -1,6 +1,6 @@
# See the file LICENSE for redistribution information.
#
-# Copyright (c) 2005, 2012 Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 2015 Oracle and/or its affiliates. All rights reserved.
#
# $Id$
#
@@ -14,6 +14,9 @@
# TEST initializes the same subsystems as the original env.
# TEST Make sure that the attempt to change subsystems when
# TEST joining an env fails with the appropriate messages.
+# TEST
+# TEST Make sure that full blob logging is enabled when replication
+# TEST is enabled, and that it cannot be disabled.
proc env014 { } {
source ./include.tcl
@@ -114,4 +117,17 @@ proc env014 { } {
error_check_good env_close [$env close] 0
error_check_good env_remove [berkdb envremove -force -home $testdir] 0
+
+ # Enabling replication enables DB_LOG_BLOB, and it cannot be disabled
+ puts "\tEnv$tnum.i: Replication enables DB_LOG_BLOB."
+ set env [berkdb_env_noerr -create -rep_master \
+ -rep_transport [list 1 replsend] -lock -txn -home $testdir]
+ error_check_good env_open [is_valid_env $env] TRUE
+ error_check_good log_blob_on [$env log_get_config blob] 1
+ catch {$env log_config blob off} ret
+ error_check_good log_blob_enable \
+ [is_substr $ret "DB_LOG_BLOB must be enabled"] 1
+
+ error_check_good env_close [$env close] 0
+ error_check_good env_remove [berkdb envremove -force -home $testdir] 0
}