dworkin / dgd

Dworkin's Game Driver, an object-oriented database management system originally used to run MUDs.
https://www.dworkin.nl/dgd/
GNU Affero General Public License v3.0
103 stars 31 forks source link

rename_file() works in atomic function #39

Closed nyankers closed 3 years ago

nyankers commented 3 years ago

I'm able to call rename_file() in an atomic function, even one that immediately fails, for example using a function like below:

atomic void test(string a, string b, int fail)
{
    rename_file(a, b);
    if (fail) {
        error("fail");
    }
}

I'm able to reproduce this on the latest checkout of dgd running a clean checkout of Cloud Server.

I've written a local change that resolves this, I'll make a pull request so you can take a look.

dworkin commented 3 years ago

Thanks!