]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/Storage.hs
Wrote many...
[Rakka.git] / Rakka / Storage.hs
index 56b42da0ae57f8668685f86d1cd9bca08ebe0f60..3a883d37ac664882440ac7039c795ca80c2048b2 100644 (file)
@@ -10,6 +10,8 @@ module Rakka.Storage
     , putPageA
 
     , searchPages
+
+    , rebuildIndex
     )
     where
 
@@ -65,6 +67,11 @@ searchPages sto cond
          atomically $ takeTMVar var
 
 
+rebuildIndex :: MonadIO m => Storage -> m ()
+rebuildIndex sto
+    = liftIO $ atomically $ writeTChan (stoIndexChan sto) RebuildIndex
+
+
 syncIndex :: Storage -> IO ()
 syncIndex sto
     = atomically $ writeTChan (stoIndexChan sto) SyncIndex