MB-7057 Schedule VB deletion first and snapshotVBs for resetVB()
MB-7057 Schedule VB deletion first and snapshotVBs for resetVB()

resetVBucket() internally deletes a given vbucket and recreates
the empty vbucket in memory and disk. Therefore, the vbucket
deletion should be scheduled first and then the vbucket state
snapshot task be executed. Therefore, the flusher also should
skip the vbucket whose database creation request is still waiting
in the queue.

Change-Id: Ic936f5100f02d438367d9a1d50333818950a35d8
Reviewed-on: http://review.couchbase.org/22286
Reviewed-by: Michael Wiederhold <a17fed27eaa842282862ff7c1b9c8395a26ac320@couchbase.com>
Reviewed-by: Jin Lim <c45cd80a556f432a3607171a6818cd5a074b5cd4@couchbase.com>
Tested-by: Chiyoung Seo <8b279095f11c26cc21045fda5a3e51debb005aa9@gmail.com>

sriganes/ep-engine,teligent-ru/ep-engine,abhinavdangeti/ep-engine,daverigby/ep-engine,owendCB/ep-engine,owendCB/ep-engine,hisundar/ep-engine,jimwwalker/ep-engine,jimwwalker/ep-engine,membase/ep-engine,abhinavdangeti/ep-engine,abhinavdangeti/ep-engine,jimwwalker/ep-engine,abhinavdangeti/ep-engine,hisundar/ep-engine,hisundar/ep-engine,membase/ep-engine,daverigby/ep-engine,teligent-ru/ep-engine,teligent-ru/ep-engine,daverigby/ep-engine,sriganes/ep-engine,abhinavdangeti/ep-engine,couchbase/ep-engine,sriganes/ep-engine,membase/ep-engine,couchbase/ep-engine,hisundar/ep-engine,daverigby/ep-engine,daverigby/kv_engine,owendCB/ep-engine,couchbase/ep-engine,owendCB/ep-engine,daverigby/kv_engine,daverigby/kv_engine,sriganes/ep-engine,teligent-ru/ep-engine,jimwwalker/ep-engine,membase/ep-engine,couchbase/ep-engine,daverigby/kv_engine