From 68d1abdb851a839fefc55b00eb49eb22a399595b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Dec 2014 00:39:18 +0100 Subject: [PATCH] storage/nfs: clear last_error in SetState() Fixes bogus assertion failure. --- src/storage/plugins/NfsStorage.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage/plugins/NfsStorage.cxx b/src/storage/plugins/NfsStorage.cxx index 8ddb14250..823d662c5 100644 --- a/src/storage/plugins/NfsStorage.cxx +++ b/src/storage/plugins/NfsStorage.cxx @@ -146,6 +146,7 @@ private: const ScopeLock protect(mutex); state = _state; + last_error.Clear(); last_error.Set(error); cond.broadcast(); }