volser-delete-clone-not-source-20070702
authorDan Hyde <drh@umich.edu>
Mon, 2 Jul 2007 18:05:04 +0000 (18:05 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 2 Jul 2007 18:05:04 +0000 (18:05 +0000)
FIXES 64268

fixes a bug in the UV_CopyVolume2 cleanup code. Without
this patch, the cleanup code will delete the source volume.

src/volser/vsprocs.c

index 698f0be..6f97b88 100644 (file)
@@ -2479,7 +2479,7 @@ cpincr:
        VPRINT1("Recovery: Creating transaction on clone volume %u ...",
                cloneVol);
        code =
-           AFSVolTransCreate(fromconn, newVol, afrompart, ITOffline,
+           AFSVolTransCreate(fromconn, cloneVol, afrompart, ITOffline,
                              &clonetid);
        if (!code) {
            VDONE;