From 952fe987967b805046da95e9bcc424bba7fa397b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 1 Oct 2014 20:44:54 +0200 Subject: lib/nfs/Glue: add assertion --- src/lib/nfs/Glue.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib') diff --git a/src/lib/nfs/Glue.cxx b/src/lib/nfs/Glue.cxx index 6fc849609..287799b2f 100644 --- a/src/lib/nfs/Glue.cxx +++ b/src/lib/nfs/Glue.cxx @@ -24,6 +24,8 @@ #include "event/Call.hxx" #include "util/Manual.hxx" +#include + static Manual nfs_glue; static unsigned in_use; @@ -50,5 +52,7 @@ nfs_finish() NfsConnection & nfs_get_connection(const char *server, const char *export_name) { + assert(io_thread_inside()); + return nfs_glue->GetConnection(server, export_name); } -- cgit v1.2.3