user64890: Note this is not duplicate of Is there a way to change the wallet.dat location without changing the entire data directory? 
I want to change wallet.dat file location. From the above link it seems to be impossible. But is there any way i can update wallet file location in bitcoin source code https://github.com/bitcoin/bitcoin and run make command to make it executable. Here is the reason why i want to do this:
https://serverfault.com/questions/888293/share-a-file-between-aws-servers
I want to share a common wallet.dat file between two server.  

user38618: Just wait for the next Bitcoin Core release. They've already implemented -walletdir: https://github.com/bitcoin/bitcoin/commit/0530ba0eae147563921b162ed05347234d8b53c0
https://github.com/bitcoin/bitcoin/pull/11466

64890: <p><strong>Note</strong> this is not duplicate of <a href="https://bitcoin.stackexchange.com/questions/3449/is-there-a-way-to-change-the-wallet-dat-location-without-changing-the-entire-dat">Is there a way to change the wallet.dat location without changing the entire data directory?</a> </p>

<p>I want to change <code>wallet.dat</code> file location. From the above link it seems to be impossible. But is there any way i can update wallet file location in bitcoin source code <a href="https://github.com/bitcoin/bitcoin" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin</a> and run <code>make</code> command to make it executable. Here is the reason why i want to do this:
<a href="https://serverfault.com/questions/888293/share-a-file-between-aws-servers">https://serverfault.com/questions/888293/share-a-file-between-aws-servers</a></p>

<p>I want to share a common wallet.dat file between two server.  </p>
 38618: <p>Just wait for the next Bitcoin Core release. They've already implemented <code>-walletdir</code>: <a href="https://github.com/bitcoin/bitcoin/commit/0530ba0eae147563921b162ed05347234d8b53c0" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/commit/0530ba0eae147563921b162ed05347234d8b53c0</a></p>

<p><a href="https://github.com/bitcoin/bitcoin/pull/11466" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/pull/11466</a></p>
