summaryrefslogtreecommitdiff
path: root/src/db/db_truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/db_truncate.c')
-rw-r--r--src/db/db_truncate.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/db/db_truncate.c b/src/db/db_truncate.c
index 0eeb0c64..d57a23b2 100644
--- a/src/db/db_truncate.c
+++ b/src/db/db_truncate.c
@@ -1,7 +1,7 @@
/*-
* See the file LICENSE for redistribution information.
*
- * Copyright (c) 2001, 2012 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2015 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
@@ -191,6 +191,10 @@ __db_truncate(dbp, ip, txn, countp)
if (dbc != NULL && (t_ret = __dbc_close(dbc)) != 0 && ret == 0)
ret = t_ret;
+ /* Delete all blob files. */
+ if (ret == 0)
+ ret = __blob_del_all(dbp, txn, 1);
+
DB_TEST_RECOVERY(dbp, DB_TEST_POSTDESTROY, ret, NULL);
DB_TEST_RECOVERY_LABEL