-2003-08-02 Version 1.31 30Jul03 Released
+2003-08-02 Version 1.31a 02Aug03 Released
+- Yifang Dai reported a case where he stress tested Bacula and
+ backed up to four volumes, but only two were selected for the
+ restore. This is because I forgot that the selection could
+ span a volume entirely.
+
- Added a missing CLIENT_FOUND_ROWS to the second attempt to open
the MySQL database -- this prevents UPDATE errors if nothing
actually changed.
- cvs -q tag Release-1_nn
- cd bacula
- rm -rf bacula-1.nn
-- cvs -q export -r Release-1_nn -d bacula-1.nn bacula
+- cvs -z3 export -r Release-1_nn -d bacula-1.nn bacula
}
}
+/*
+ * Find out if Volume defined with FirstIndex and LastIndex
+ * falls within the range of selected files in the bsr.
+ */
static bool is_volume_selected(RBSR_FINDEX *fi,
int32_t FirstIndex, int32_t LastIndex)
{
if (fi) {
if ((fi->findex >= FirstIndex && fi->findex <= LastIndex) ||
- (fi->findex2 >= FirstIndex && fi->findex2 <= LastIndex)) {
+ (fi->findex2 >= FirstIndex && fi->findex2 <= LastIndex) ||
+ (fi->findex < FirstIndex && fi->findex2 > LastIndex)) {
return true;
}
return is_volume_selected(fi->next, FirstIndex, LastIndex);
/* */
-#define VERSION "1.31"
+#define VERSION "1.31a"
#define VSTRING "1"
-#define BDATE "30 Jul 2003"
-#define LSMDATE "30Jul03"
+#define BDATE "02 Aug 2003"
+#define LSMDATE "02Aug03"
/* Debug flags */
#define DEBUG 1