Commit 0f7d252e authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Fixed selection of non-DISABLED hardware for the schedulers synchronization.

However, this is to be evolved to a more robust schema, where
DISABLED hardware for too long is deemed not to have any transfer any
longer and won't stop the synchronization from being executed on the
rest of the cluster.
parent 4d766ae1
......@@ -59,12 +59,13 @@ class DiskServerListCache:
stcur = stconn.cursor()
stcur.arraysize = 50
# get all but DISABLED diskservers
stDiskServers = '''SELECT UNIQUE,
FROM FileSystem, DiskServer, DiskPool
WHERE FileSystem.diskServer =
AND FileSystem.diskPool =
AND DiskServer.status IN (0,1)
AND FileSystem.status IN (0,1)'''
AND DiskServer.status IN (0, 1, 3)
AND FileSystem.status IN (0, 1, 3)'''
rows = stcur.fetchall()
# build up the list of new ones
Supports Markdown
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