]> git.pld-linux.org Git - packages/db4.4.git/blobdiff - patch.4.4.20.1
66584d621355df055b6e05b4a02e9c3e patch.4.4.20.1
[packages/db4.4.git] / patch.4.4.20.1
diff --git a/patch.4.4.20.1 b/patch.4.4.20.1
new file mode 100644 (file)
index 0000000..f687729
--- /dev/null
@@ -0,0 +1,27 @@
+*** qam/qam_files.c.orig       2005-10-20 11:57:12.000000000 -0700
+--- qam/qam_files.c    2006-01-27 13:38:38.000000000 -0800
+***************
+*** 411,416 ****
+--- 411,422 ----
+           DB_APP_DATA, buf, 0, NULL, &real_name)) != 0)
+               goto err;
+  #endif
++ 
++      mpf = array->mpfarray[offset].mpf;
++      /* This extent my already be marked for delete and closed. */
++      if (mpf == NULL)
++              goto err;
++ 
+       /*
+        * The log must be flushed before the file is deleted.  We depend on
+        * the log record of the last delete to recreate the file if we crash.
+***************
+*** 418,424 ****
+       if (LOGGING_ON(dbenv) && (ret = __log_flush(dbenv, NULL)) != 0)
+               goto err;
+  
+-      mpf = array->mpfarray[offset].mpf;
+       (void)__memp_set_flags(mpf, DB_MPOOL_UNLINK, 1);
+       /* Someone could be real slow, let them close it down. */
+       if (array->mpfarray[offset].pinref != 0)
+--- 424,429 ----
This page took 0.070141 seconds and 4 git commands to generate.