Commit 952fe987 authored by Max Kellermann's avatar Max Kellermann

lib/nfs/Glue: add assertion

parent 579912e5
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include "event/Call.hxx" #include "event/Call.hxx"
#include "util/Manual.hxx" #include "util/Manual.hxx"
#include <assert.h>
static Manual<NfsManager> nfs_glue; static Manual<NfsManager> nfs_glue;
static unsigned in_use; static unsigned in_use;
...@@ -50,5 +52,7 @@ nfs_finish() ...@@ -50,5 +52,7 @@ nfs_finish()
NfsConnection & NfsConnection &
nfs_get_connection(const char *server, const char *export_name) nfs_get_connection(const char *server, const char *export_name)
{ {
assert(io_thread_inside());
return nfs_glue->GetConnection(server, export_name); return nfs_glue->GetConnection(server, export_name);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment