From 2b722b756864b14b6299a8b24067a37e12aabfc4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 27 Jan 2015 19:39:04 +0100 Subject: [SERVER] Fix automatic proxying to use supplied connection; fix race condition in uplink_init --- src/server/globals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/globals.h') diff --git a/src/server/globals.h b/src/server/globals.h index 1edf44f..2ea1c43 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -107,7 +107,7 @@ struct _dnbd3_image int rid; // revision of image int users; // clients currently using this image time_t atime; // last access time - bool working; // true if image exists and completeness is == 100% or a working upstream proxy is connected + volatile bool working; // true if image exists and completeness is == 100% or a working upstream proxy is connected pthread_spinlock_t lock; }; -- cgit v1.2.3-55-g7522