summaryrefslogtreecommitdiffstats
path: root/src/server/integrity.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-08-18 21:59:26 +0200
committerSimon Rettberg2019-08-18 21:59:26 +0200
commit1d2295131020688b5a688286ce8c53d6bb7abdb8 (patch)
treef161e25b92a23ad7aebfafb482b265a4c0cc948b /src/server/integrity.c
parent[SERVER] uplink: More consistent type/variable naming (diff)
downloaddnbd3-1d2295131020688b5a688286ce8c53d6bb7abdb8.tar.gz
dnbd3-1d2295131020688b5a688286ce8c53d6bb7abdb8.tar.xz
dnbd3-1d2295131020688b5a688286ce8c53d6bb7abdb8.zip
[SERVER] Add struct representing active connection to uplink server
Diffstat (limited to 'src/server/integrity.c')
-rw-r--r--src/server/integrity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/integrity.c b/src/server/integrity.c
index c52d17b..3d1ac9b 100644
--- a/src/server/integrity.c
+++ b/src/server/integrity.c
@@ -240,7 +240,7 @@ static void* integrity_main(void * data UNUSED)
if ( !foundCorrupted ) {
mutex_lock( &image->lock );
if ( image->uplink != NULL ) { // TODO: image_determineWorkingState() helper?
- image->working = image->uplink->fd != -1 && image->readFd != -1;
+ image->working = image->uplink->current.fd != -1 && image->readFd != -1;
}
mutex_unlock( &image->lock );
}