log index writer takes metadata