Fsync() after ftruncate() to make sure metadata changes become durable.
Fsync() after ftruncate() to make sure metadata changes become durable.

Closes #362.

bpradipt/rethinkdb,grandquista/rethinkdb,wojons/rethinkdb,marshall007/rethinkdb,ajose01/rethinkdb,catroot/rethinkdb,niieani/rethinkdb,jfriedly/rethinkdb,captainpete/rethinkdb,sebadiaz/rethinkdb,jmptrader/rethinkdb,JackieXie168/rethinkdb,rrampage/rethinkdb,lenstr/rethinkdb,yaolinz/rethinkdb,KSanthanam/rethinkdb,alash3al/rethinkdb,wujf/rethinkdb,scripni/rethinkdb,catroot/rethinkdb,robertjpayne/rethinkdb,matthaywardwebdesign/rethinkdb,mquandalle/rethinkdb,gavioto/rethinkdb,rrampage/rethinkdb,yakovenkodenis/rethinkdb,AntouanK/rethinkdb,sebadiaz/rethinkdb,victorbriz/rethinkdb,Wilbeibi/rethinkdb,captainpete/rethinkdb,AtnNn/rethinkdb,sontek/rethinkdb,ayumilong/rethinkdb,ayumilong/rethinkdb,grandquista/rethinkdb,marshall007/rethinkdb,spblightadv/rethinkdb,bchavez/rethinkdb,4talesa/rethinkdb,eliangidoni/rethinkdb,Qinusty/rethinkdb,wkennington/rethinkdb,sbusso/rethinkdb,JackieXie168/rethinkdb,greyhwndz/rethinkdb,AntouanK/rethinkdb,gdi2290/rethinkdb,matthaywardwebdesign/rethinkdb,gavioto/rethinkdb,lenstr/rethinkdb,pap/rethinkdb,rrampage/rethinkdb,dparnell/rethinkdb,AtnNn/rethinkdb,jfriedly/rethinkdb,eliangidoni/rethinkdb,spblightadv/rethinkdb,lenstr/rethinkdb,pap/rethinkdb,mbroadst/rethinkdb,captainpete/rethinkdb,matthaywardwebdesign/rethinkdb,mbroadst/rethinkdb,wkennington/rethinkdb,JackieXie168/rethinkdb,wujf/rethinkdb,4talesa/rethinkdb,gdi2290/rethinkdb,jesseditson/rethinkdb,sebadiaz/rethinkdb,niieani/rethinkdb,AntouanK/rethinkdb,ajose01/rethinkdb,scripni/rethinkdb,captainpete/rethinkdb,RubenKelevra/rethinkdb,wkennington/rethinkdb,eliangidoni/rethinkdb,grandquista/rethinkdb,tempbottle/rethinkdb,AtnNn/rethinkdb,elkingtonmcb/rethinkdb,matthaywardwebdesign/rethinkdb,nviennot/rethinkdb,losywee/rethinkdb,jmptrader/rethinkdb,wujf/rethinkdb,Qinusty/rethinkdb,mcanthony/rethinkdb,sebadiaz/rethinkdb,niieani/rethinkdb,gavioto/rethinkdb,ajose01/rethinkdb,niieani/rethinkdb,spblightadv/rethinkdb,scripni/rethinkdb,robertjpayne/rethinkdb,urandu/rethinkdb,ayumilong/rethinkdb,AntouanK/rethinkdb,bchavez/rethinkdb,rrampage/rethinkdb,eliangidoni/rethinkdb,catroot/rethinkdb,Wilbeibi/rethinkdb,mbroadst/rethinkdb,captainpete/rethinkdb,matthaywardwebdesign/rethinkdb,scripni/rethinkdb,dparnell/rethinkdb,gdi2290/rethinkdb,jesseditson/rethinkdb,jmptrader/rethinkdb,jfriedly/rethinkdb,pap/rethinkdb,jfriedly/rethinkdb,Qinusty/rethinkdb,4talesa/rethinkdb,marshall007/rethinkdb,4talesa/rethinkdb,RubenKelevra/rethinkdb,gavioto/rethinkdb,sontek/rethinkdb,bpradipt/rethinkdb,mquandalle/rethinkdb,victorbriz/rethinkdb,dparnell/rethinkdb,yakovenkodenis/rethinkdb,RubenKelevra/rethinkdb,KSanthanam/rethinkdb,pap/rethinkdb,tempbottle/rethinkdb,captainpete/rethinkdb,ayumilong/rethinkdb,jmptrader/rethinkdb,ayumilong/rethinkdb,tempbottle/rethinkdb,Wilbeibi/rethinkdb,greyhwndz/rethinkdb,victorbriz/rethinkdb,wkennington/rethinkdb,Qinusty/rethinkdb,victorbriz/rethinkdb,yakovenkodenis/rethinkdb,gdi2290/rethinkdb,Wilbeibi/rethinkdb,elkingtonmcb/rethinkdb,nviennot/rethinkdb,wojons/rethinkdb,losywee/rethinkdb,elkingtonmcb/rethinkdb,ajose01/rethinkdb,KSanthanam/rethinkdb,bchavez/rethinkdb,captainpete/rethinkdb,robertjpayne/rethinkdb,wkennington/rethinkdb,robertjpayne/rethinkdb,victorbriz/rethinkdb,AntouanK/rethinkdb,robertjpayne/rethinkdb,Qinusty/rethinkdb,tempbottle/rethinkdb,JackieXie168/rethinkdb,sontek/rethinkdb,nviennot/rethinkdb,sontek/rethinkdb,scripni/rethinkdb,yaolinz/rethinkdb,grandquista/rethinkdb,ayumilong/rethinkdb,alash3al/rethinkdb,tempbottle/rethinkdb,yaolinz/rethinkdb,marshall007/rethinkdb,wujf/rethinkdb,rrampage/rethinkdb,KSanthanam/rethinkdb,wkennington/rethinkdb,mcanthony/rethinkdb,yakovenkodenis/rethinkdb,gdi2290/rethinkdb,jfriedly/rethinkdb,KSanthanam/rethinkdb,lenstr/rethinkdb,marshall007/rethinkdb,yakovenkodenis/rethinkdb,greyhwndz/rethinkdb,AntouanK/rethinkdb,niieani/rethinkdb,RubenKelevra/rethinkdb,dparnell/rethinkdb,scripni/rethinkdb,bchavez/rethinkdb,yakovenkodenis/rethinkdb,sontek/rethinkdb,spblightadv/rethinkdb,ajose01/rethinkdb,greyhwndz/rethinkdb,pap/rethinkdb,victorbriz/rethinkdb,greyhwndz/rethinkdb,spblightadv/rethinkdb,marshall007/rethinkdb,alash3al/rethinkdb,gdi2290/rethinkdb,wujf/rethinkdb,losywee/rethinkdb,bpradipt/rethinkdb,jfriedly/rethinkdb,gavioto/rethinkdb,matthaywardwebdesign/rethinkdb,grandquista/rethinkdb,mquandalle/rethinkdb,Wilbeibi/rethinkdb,JackieXie168/rethinkdb,bchavez/rethinkdb,mcanthony/rethinkdb,bpradipt/rethinkdb,robertjpayne/rethinkdb,captainpete/rethinkdb,gavioto/rethinkdb,mquandalle/rethinkdb,mbroadst/rethinkdb,grandquista/rethinkdb,victorbriz/rethinkdb,gavioto/rethinkdb,alash3al/rethinkdb,yaolinz/rethinkdb,mbroadst/rethinkdb,mquandalle/rethinkdb,bchavez/rethinkdb,gdi2290/rethinkdb,robertjpayne/rethinkdb,sebadiaz/rethinkdb,RubenKelevra/rethinkdb,Qinusty/rethinkdb,losywee/rethinkdb,wojons/rethinkdb,mbroadst/rethinkdb,eliangidoni/rethinkdb,sbusso/rethinkdb,catroot/rethinkdb,wojons/rethinkdb,elkingtonmcb/rethinkdb,pap/rethinkdb,greyhwndz/rethinkdb,greyhwndz/rethinkdb,RubenKelevra/rethinkdb,RubenKelevra/rethinkdb,nviennot/rethinkdb,wkennington/rethinkdb,dparnell/rethinkdb,niieani/rethinkdb,mcanthony/rethinkdb,tempbottle/rethinkdb,jfriedly/rethinkdb,KSanthanam/rethinkdb,ayumilong/rethinkdb,alash3al/rethinkdb,sontek/rethinkdb,wujf/rethinkdb,4talesa/rethinkdb,yaolinz/rethinkdb,bchavez/rethinkdb,urandu/rethinkdb,mcanthony/rethinkdb,bchavez/rethinkdb,pap/rethinkdb,bchavez/rethinkdb,urandu/rethinkdb,sebadiaz/rethinkdb,nviennot/rethinkdb,dparnell/rethinkdb,elkingtonmcb/rethinkdb,catroot/rethinkdb,wojons/rethinkdb,mcanthony/rethinkdb,mbroadst/rethinkdb,Qinusty/rethinkdb,sbusso/rethinkdb,alash3al/rethinkdb,losywee/rethinkdb,grandquista/rethinkdb,niieani/rethinkdb,eliangidoni/rethinkdb,scripni/rethinkdb,lenstr/rethinkdb,jesseditson/rethinkdb,rrampage/rethinkdb,catroot/rethinkdb,dparnell/rethinkdb,urandu/rethinkdb,robertjpayne/rethinkdb,yakovenkodenis/rethinkdb,nviennot/rethinkdb,jesseditson/rethinkdb,dparnell/rethinkdb,alash3al/rethinkdb,sontek/rethinkdb,JackieXie168/rethinkdb,mcanthony/rethinkdb,urandu/rethinkdb,gavioto/rethinkdb,rrampage/rethinkdb,niieani/rethinkdb,lenstr/rethinkdb,mbroadst/rethinkdb,sontek/rethinkdb,yakovenkodenis/rethinkdb,ayumilong/rethinkdb,lenstr/rethinkdb,yaolinz/rethinkdb,Qinusty/rethinkdb,Wilbeibi/rethinkdb,greyhwndz/rethinkdb,marshall007/rethinkdb,urandu/rethinkdb,Wilbeibi/rethinkdb,sbusso/rethinkdb,tempbottle/rethinkdb,AntouanK/rethinkdb,ajose01/rethinkdb,spblightadv/rethinkdb,AtnNn/rethinkdb,AtnNn/rethinkdb,jmptrader/rethinkdb,JackieXie168/rethinkdb,eliangidoni/rethinkdb,Wilbeibi/rethinkdb,mquandalle/rethinkdb,sbusso/rethinkdb,wujf/rethinkdb,yaolinz/rethinkdb,spblightadv/rethinkdb,mquandalle/rethinkdb,grandquista/rethinkdb,elkingtonmcb/rethinkdb,yaolinz/rethinkdb,dparnell/rethinkdb,sebadiaz/rethinkdb,catroot/rethinkdb,wojons/rethinkdb,rrampage/rethinkdb,mquandalle/rethinkdb,catroot/rethinkdb,jmptrader/rethinkdb,ajose01/rethinkdb,Qinusty/rethinkdb,elkingtonmcb/rethinkdb,bpradipt/rethinkdb,scripni/rethinkdb,jfriedly/rethinkdb,JackieXie168/rethinkdb,RubenKelevra/rethinkdb,losywee/rethinkdb,robertjpayne/rethinkdb,urandu/rethinkdb,jesseditson/rethinkdb,sbusso/rethinkdb,nviennot/rethinkdb,bpradipt/rethinkdb,grandquista/rethinkdb,AntouanK/rethinkdb,mcanthony/rethinkdb,AtnNn/rethinkdb,nviennot/rethinkdb,bpradipt/rethinkdb,KSanthanam/rethinkdb,matthaywardwebdesign/rethinkdb,JackieXie168/rethinkdb,jmptrader/rethinkdb,wkennington/rethinkdb,ajose01/rethinkdb,sbusso/rethinkdb,jesseditson/rethinkdb,lenstr/rethinkdb,jmptrader/rethinkdb,sebadiaz/rethinkdb,urandu/rethinkdb,KSanthanam/rethinkdb,losywee/rethinkdb,eliangidoni/rethinkdb,pap/rethinkdb,alash3al/rethinkdb,losywee/rethinkdb,victorbriz/rethinkdb,bpradipt/rethinkdb,4talesa/rethinkdb,jesseditson/rethinkdb,spblightadv/rethinkdb,jesseditson/rethinkdb,wojons/rethinkdb,bpradipt/rethinkdb,tempbottle/rethinkdb,eliangidoni/rethinkdb,mbroadst/rethinkdb,AtnNn/rethinkdb,matthaywardwebdesign/rethinkdb,wojons/rethinkdb,AtnNn/rethinkdb,4talesa/rethinkdb,sbusso/rethinkdb,4talesa/rethinkdb,elkingtonmcb/rethinkdb,marshall007/rethinkdb