Updated writer doc id to pid in writer backend delegate.