Commit 272cc305 authored by Mike Hibler's avatar Mike Hibler

Cast value of sitevar general/export_active to an int.

Otherwise, if sitevar general/export_active had the default value of "0",
we would call exports_setup on every single xmlrpc call since "0" != 0.
parent c1ae4f06
......@@ -375,7 +375,7 @@ class MyServer(SSL.ForkingSSLServer, SimpleXMLRPCDispatcher):
# We have to make sure the exports are done, since the user might
# not be using the web interface at all.
#
if WITHZFS and ZFS_NOEXPORT and exports_active:
if WITHZFS and ZFS_NOEXPORT and int(exports_active) > 0:
limit = ((int(exports_active) * 24) - 12) * 3600
res = DBQueryFatal("select UNIX_TIMESTAMP(last_activity) "
......
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