Giter VIP home page Giter VIP logo

Comments (3)

bovine avatar bovine commented on June 5, 2024

The autogenerated birdseye-1.0.c line 7162 is something like this:

void InFlight_deleteKey(CTable *ctable, struct InFlight *row, int free_shared)
{
    if(!row->hashEntry.key)
        return;

#ifdef WITH_SHARED_TABLES
    if(ctable->share_type == CTABLE_SHARED_MASTER) {
        if(free_shared)
            shmfree(ctable->share, (void *)row->hashEntry.key);
    } else
#endif
    ckfree(row->hashEntry.key);
    row->hashEntry.key = NULL;
}

Which was called by:

void InFlight_delete(CTable *ctable, void *vRow, int indexCtl) {
    struct InFlight *row = vRow;
    // 'final' means 'shared memory will be deleted anyway, just zero out'                                                                                                                                    
    int             final = indexCtl == CTABLE_INDEX_DESTROY_SHARED;
    int             is_master = ctable->share_type == CTABLE_SHARED_MASTER;
    int             is_shared = ctable->share_type != CTABLE_SHARED_NONE;

    // If there's an index, AND we're not deleting all indices                                                                                                                                                
    if (indexCtl == CTABLE_INDEX_NORMAL) {
        ctable_RemoveFromAllIndexes (ctable, (void *)row);
        InFlight_deleteKey(ctable, row, TRUE);
        ctable_DeleteHashEntry (ctable->keyTablePtr, (ctable_HashEntry *)row);
    } else
        InFlight_deleteKey(ctable, row, indexCtl != CTABLE_INDEX_DESTROY_SHARED);

from speedtables.

bovine avatar bovine commented on June 5, 2024

indexCtl was CTABLE_INDEX_PRIVATE (-1) during the above panic

from speedtables.

bovine avatar bovine commented on June 5, 2024

fixed by 2011-01-11 commit

from speedtables.

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.