about summary refs log tree commit diff
path: root/db2/mp/mp_region.c
diff options
context:
space:
mode:
Diffstat (limited to 'db2/mp/mp_region.c')
-rw-r--r--db2/mp/mp_region.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/db2/mp/mp_region.c b/db2/mp/mp_region.c
index 6b92fbdad4..b8a72286cd 100644
--- a/db2/mp/mp_region.c
+++ b/db2/mp/mp_region.c
@@ -202,12 +202,13 @@ __memp_ropen(dbmp, path, cachesize, mode, is_private, flags)
 	 * Up the user's cachesize by 25% to account for our overhead.
 	 */
 	defcache = 0;
-	if (cachesize < DB_CACHESIZE_MIN)
+	if (cachesize < DB_CACHESIZE_MIN) {
 		if (cachesize == 0) {
 			defcache = 1;
 			cachesize = DB_CACHESIZE_DEF;
 		} else
 			cachesize = DB_CACHESIZE_MIN;
+	}
 	rlen = cachesize + cachesize / 4;
 
 	/*