Git Product home page Git Product logo

Comments (5)

shlomi-noach avatar shlomi-noach commented on July 19, 2024

Also, only remove socket file on startup if explicitly approved via command line flag.

from gh-ost.

shlomi-noach avatar shlomi-noach commented on July 19, 2024

Re:

Also, only remove socket file on startup if explicitly approved via command line flag.

Reasoning is that we may use the socket file as a migration "mutex"; this will prevent multiple concurrent executions of gh-ost, if so desired (recall that by default socket file is named after migrated table, so there's no collision by default).

Also, it's a bad idea to remove the file if it's really being used.

from gh-ost.

sjmudd avatar sjmudd commented on July 19, 2024

Shlomi, table names may not be unique though I guess the chances of OSC type collisions on same named tables (in different databases) on the same server are quite small maybe it might be better to use some sort of hash based on the database + table name to ensure uniqueness?

I have also seen tables named with spaces and other "non-unix" type characters so using this type of name might best be avoided if possible even if technically unix allows you to use them.

Just a thought.

from gh-ost.

shlomi-noach avatar shlomi-noach commented on July 19, 2024

@sjmudd the unix socket name is already based on database_name.table_name so no uniqueness problem here.

If you have spaces etc, then it's on you: provide your own --serve-socket-file rather than let gh-ost decide on the name.

from gh-ost.

shlomi-noach avatar shlomi-noach commented on July 19, 2024

Closed by #147

from gh-ost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.