~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.h

  • Committer: Brian Aker
  • Date: 2009-02-03 22:05:11 UTC
  • Revision ID: brian@tangent.org-20090203220511-mxjszxirabwhvgjd
Remove dead callback code around QC

Show diffs side-by-side

added added

removed removed

Lines of Context:
670
670
  virtual uint8_t table_cache_type() { return HA_CACHE_TBL_NONTRANSACT; }
671
671
 
672
672
 
673
 
  /**
674
 
    @brief Register a named table with a call back function to the query cache.
675
 
 
676
 
    @param session The thread handle
677
 
    @param table_key A pointer to the table name in the table cache
678
 
    @param key_length The length of the table name
679
 
    @param[out] engine_callback The pointer to the storage engine call back
680
 
      function
681
 
    @param[out] engine_data Storage engine specific data which could be
682
 
      anything
683
 
 
684
 
    This method offers the storage engine, the possibility to store a reference
685
 
    to a table name which is going to be used with query cache.
686
 
    The method is called each time a statement is written to the cache and can
687
 
    be used to verify if a specific statement is cachable. It also offers
688
 
    the possibility to register a generic (but static) call back function which
689
 
    is called each time a statement is matched against the query cache.
690
 
 
691
 
    @note If engine_data supplied with this function is different from
692
 
      engine_data supplied with the callback function, and the callback returns
693
 
      false, a table invalidation on the current table will occur.
694
 
 
695
 
    @return Upon success the engine_callback will point to the storage engine
696
 
      call back function, if any, and engine_data will point to any storage
697
 
      engine data used in the specific implementation.
698
 
      @retval true Success
699
 
      @retval false The specified table or current statement should not be
700
 
        cached
701
 
  */
702
 
 
703
 
  virtual bool
704
 
    register_query_cache_table(Session *, char *, uint32_t,
705
 
                               qc_engine_callback *engine_callback,
706
 
                               uint64_t *)
707
 
  {
708
 
    *engine_callback= 0;
709
 
    return true;
710
 
  }
711
 
 
712
 
 
713
673
 /*
714
674
   @retval true   Primary key (if there is one) is clustered
715
675
                  key covering all fields