From 3d4edccb21d69737c263f293410a1a25e4eddac1 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 30 Jul 2010 13:34:25 +0000
Subject: [PATCH] Implements disk space monitoring for the JEB backend, import and rebuild operations. When low disk space is threshold is reached, the operation will abort and close the environment cleanly. All indexes will be left in the "untrusted" state so the user knows the DB is invalid. It will also print the appropriate message depending on which import phase when the threshold is reached: * phase 1 failure: import append + replace required to continue. * phase 2 failure: rebuildAll required to continue.

---
 opends/src/messages/messages/jeb.properties |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/opends/src/messages/messages/jeb.properties b/opends/src/messages/messages/jeb.properties
index 5115d1b..fe26497 100644
--- a/opends/src/messages/messages/jeb.properties
+++ b/opends/src/messages/messages/jeb.properties
@@ -427,4 +427,13 @@
 MILD_WARN_IMPORT_LDIF_LACK_MEM_PHASE_TWO_221=Insufficient free memory (%d bytes) to \
  perform import phase 2 in a single batch. Some indexes will be imported using \
  several batches which may result in reduced performance
-
+SEVERE_ERR_IMPORT_LDIF_LACK_DISK_PHASE_ONE_222=The disk containing directory \
+  %s is full (%d bytes free). After freeing more than %d bytes on the disk, \
+  import can continue in append and replace mode to load the rest of the \
+  entries
+SEVERE_ERR_IMPORT_LDIF_LACK_DISK_PHASE_TWO_223=The disk containing directory \
+  %s is full (%d bytes free). After freeing more than %d bytes on the disk, \
+  a rebuild of all the indexes is needed to complete the import
+SEVERE_ERR_REBUILD_INDEX_LACK_DISK_224=The disk containing directory \
+  %s is full (%d bytes free). Rebuild index can not continue until the free \
+  space rises above the threshold (%d bytes)

--
Gitblit v1.10.0