Skip to content

Commit

Permalink
Translog: Implement a file system based translog and make it the defa…
Browse files Browse the repository at this point in the history
…ult, closes #260.
  • Loading branch information
kimchy committed Jul 14, 2010
1 parent e7d80b8 commit 95ba62f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.elasticsearch.common.inject.AbstractModule;
import org.elasticsearch.common.inject.Scopes;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.index.translog.memory.MemoryTranslog;
import org.elasticsearch.index.translog.fs.FsTranslog;

/**
* @author kimchy (shay.banon)
Expand All @@ -41,7 +41,7 @@ public TranslogModule(Settings settings) {

@Override protected void configure() {
bind(Translog.class)
.to(settings.getAsClass(TranslogSettings.TYPE, MemoryTranslog.class))
.to(settings.getAsClass(TranslogSettings.TYPE, FsTranslog.class))
.in(Scopes.SINGLETON);
}
}

0 comments on commit 95ba62f

Please sign in to comment.