From f8ff458ef02d5ef49bc467304e40571d871385c8 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 7 Sep 2010 20:31:20 -0400 Subject: [PATCH] ubik recovery and remote use correct file number the file propagation "out of band" changes should not hardcode recovery on file 0, but instead work on any file the interface is acting on. use the provided file number. Change-Id: I713671beaab01630bdd21d733f950f75c6456ac3 Reviewed-on: http://gerrit.openafs.org/2715 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/ubik/recovery.c | 2 +- src/ubik/remote.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ubik/recovery.c b/src/ubik/recovery.c index b6195c359..827f00603 100644 --- a/src/ubik/recovery.c +++ b/src/ubik/recovery.c @@ -694,7 +694,7 @@ urecovery_Interact(void *dummy) if (!code) code = rename(pbuffer, tbuffer); if (!code) { - (*ubik_dbase->open) (ubik_dbase, 0); + (*ubik_dbase->open) (ubik_dbase, file); #endif /* after data is good, sync disk with correct label */ code = diff --git a/src/ubik/remote.c b/src/ubik/remote.c index b395539fe..4069cbd1b 100644 --- a/src/ubik/remote.c +++ b/src/ubik/remote.c @@ -593,7 +593,7 @@ SDISK_SendFile(struct rx_call *rxcall, afs_int32 file, if (!code) code = rename(pbuffer, tbuffer); if (!code) { - (*ubik_dbase->open) (ubik_dbase, 0); + (*ubik_dbase->open) (ubik_dbase, file); #endif code = (*ubik_dbase->setlabel) (dbase, file, avers); #ifndef OLD_URECOVERY -- 2.39.5