lib/nfs/Glue: add assertion

This commit is contained in:
Max Kellermann 2014-10-01 20:44:54 +02:00
parent 579912e52f
commit 952fe98796

View File

@ -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()
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);
} }