edfs: fix case when current host is not datanode